<?php
include("sqlconnect.php");


$pname=$_POST['p_name'];
$pprice=$_POST['p_price'];
$vname=$_POST['v_name'];
$brandname=$_POST['b_name'];
$cat = $_POST['cat'];
//brand input
//$brand=$_POST['brand'];
session_start();
$_SESSION['save']=1;
$query=("INSERT INTO product(product_name, product_price, vendor_name,brand_name,product_category) VALUES('$pname','$pprice', '$vname','$brandname','$cat')");
mysql_query($query) or die("error in inserting");
//echo "successfully inserted in table";

header('Location: vendor_tab3.php');

?>